package com.dongdongshop.api;

import com.dongdongshop.data.Result;
import com.dongdongshop.dto.AdminDTO;
import com.dongdongshop.dto.ItemCatDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "dongdongshop-system",path = "/system/api")
public interface SystemApi {
    @PostMapping("/admin/getAdminUser")
    Result<AdminDTO> getAdminUser(@RequestParam("username") String username);

    @GetMapping("/item/queryAll")
    List<ItemCatDTO> queryAll();
}


